package com.yang.dao;

import com.yang.entity.RoomEntity;
import com.yang.entity.UserEntity;

import java.util.List;

public interface LoginDao {

    /**
     * 通过emil找到用户
     * @param emil
     * @return
     */
    public UserEntity selectUserByEmil(String emil);

    /**
     * 更新userEntity
     * @param userEntity
     * @return
     */
    public Boolean updateUser(UserEntity userEntity);

    /**
     * 查找房间信息实体
     * @return
     */
    public List<RoomEntity> selectRoomEntity();
}
